package cn.sciento.boot.message.feign;

import cn.sciento.boot.message.feign.fallback.PlatformRemoteImpl;
import cn.sciento.common.STongService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * description
 *

 */
@FeignClient(value = STongService.Platform.NAME,contextId = "PlatformRemoteService", path = "/v1", fallback = PlatformRemoteImpl.class)
public interface PlatformRemoteService {

    /**
     * 获取在线用户
     *
     * @param organizationId 租户Id
     * @return 用户信息
     */
    @GetMapping("/{organizationId}/online-users/list")
    ResponseEntity<String> listOnlineUser(@PathVariable("organizationId") Long organizationId);
}
